<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>后台管理 - 宁宁-商城</title>
    <link type="text/css" rel="stylesheet" href="../css/style.css"/>
    <script type="text/javascript" src="../scripts/function-manage.js"></script>
</head>
<body>
<div id="header" class="wrap">
    <div id="logo"><img src="../images/logo.gif"/></div>
    <div class="help"><a href="../indexSelect">返回前台页面</a></div>
    <div class="navbar">
        <ul class="clearfix">
            <li><a href="index.jsp">首页</a></li>
            <li><a href="user">用户</a></li>
            <li><a href="productSelect">商品</a></li>
            <li class="current"><a href="ordersel">订单</a></li>
            <li><a href="SelManage">留言</a></li>
            <li><a href="newsselect">新闻</a></li>
        </ul>
    </div>
</div>
<div id="childNav">
    <div class="welcome wrap">
        管理员 ${name.EU_USER_ID} 您好，欢迎回到管理后台。
    </div>
</div>
<div id="position" class="wrap">
    您现在的位置：<a href="index.jsp">宁宁-商城</a> &gt; 管理后台
</div>
<div id="main" class="wrap">
    <div id="menu-mng" class="lefter">
        <div class="box">
            <dl>
                <dt>用户管理</dt>
                <dd><em><a href="user-add.jsp">新增</a></em><a href="user">用户管理</a></dd>
                <dt>商品信息</dt>
                <dd><em><a href="productClassAdd">新增</a></em><a href="productClass">分类管理</a></dd>
                <dd><em><a href="productAdd">新增</a></em><a href="productSelect">商品管理</a></dd>
                <dt>订单管理</dt>
                <dd><a href="ordersel">订单管理</a></dd>
                <dt>留言管理</dt>
                <dd><a href="SelManage">留言管理</a></dd>
                <dt>新闻管理</dt>
                <dd><em><a href="news-add.jsp">新增</a></em><a href="newsselect">新闻管理</a></dd>
            </dl>
        </div>
    </div>
    <div class="main">
        <h2>订单管理</h2>
        <div class="manage">
            <div class="search">
                <form method="get">
                    订单号：<input type="text" class="text" name="orderId"/> 订货人：<input type="text" class="text"
                                                                                    name="userName"/> <label
                        class="ui-blue"><input type="submit" name="submit" value="查询"/></label>
                </form>
            </div>
            <div class="spacer"></div>
            <table class="list">
                <tr>
                    <th>ID</th>
                    <th>姓名</th>
                    <th>发货地址</th>
                    <th>状态</th>
                    <th>操作</th>
                </tr>
                <c:forEach var="o" items="${order}">
                    <tr>
                        <td class="first w4 c">${o.EO_ID }</td>
                        <td class="w1 c">${o.EO_USER_NAME }</td>
                        <td>${o.EO_USER_ADDRESS }</td>
                        <td class="w1 c">${o.orderStatusStr}</td>
                        <td class="w1 c"><a href="touporder?id=${o.EO_ID }">修改</a> <a
                                href="javascript:DeleteOder(${o.EO_ID });">删除</a></td>
                    </tr>
                </c:forEach>
            </table>
            <div class="pager">
                当前:${cpage }/${tpage }页
                <a href="ordersel?cp=1&orderId=${orderId }&userName=${userName}">首页</a>
                <a href="ordersel?cp=${cpage-1<=0 ?1:cpage-1}&orderId=${orderId }&userName=${userName}">上一页</a>
                <a href="ordersel?cp=${cpage+1>=tpage ? tpage : cpage+1 }&orderId=${orderId }&userName=${userName}">下一页</a>
                <a href="ordersel?cp=${tpage }&orderId=${orderId }&userName=${userName}">尾页</a>
                <select onchange="jumporder(this.value,'${orderId }','${userName}')">
                    <c:forEach var="i" begin="1" end="${tpage}">
                        <option ${i==cpage ? "selected" : "" } value="${i}">${i }页</option>
                    </c:forEach>
                </select>
            </div>
        </div>
    </div>
    <div class="clear"></div>
</div>
<%@ include file="/include/footer.jsp" %>
</body>
</html>

